package Jdbc;

import java.sql.Date;
import java.util.List;

public class DaoTest {
    public static void main(String[] args) {
        StudentDao dao=new StudentDao();
//        List<Student> list = dao.findALL();
//        for(Student s:list)
//            System.out.println(s);
//        System.out.println(">>>>>>>>>>>>");

//        Student student = dao.get(155L);
//        if(student==null){
//            System.out.println("查无此人");
//        }else{
//            System.out.println("此人信息如右："+student);
//        }
//        System.out.println("<<<<<<<<<<");
//        Student student=new Student(300,"小徐","男","111","111",
//                "111",3, Date.valueOf("2021-9-1"),"11",Date.valueOf("2000-10-1"),
//                "22","111","11");
//        dao.add(student);
        List<Student> list=dao.find(10,5);
        for (Student s :list){
            System.out.println(s);
        }
    }
}
